package com.foreknow.demo4;

/**
 * 有返回值的方法.
 */
public class TestMethod3 {
    public static int add(int a,int b){
        return a+b;
    }
    public static void main(String[] args) {
        int sum = add(4,6);
        System.out.println(sum);
    }
}